home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / dev / www-talk.9301-9306.Z / www-talk.9301-9306 / text0853.txt < prev    next >
Encoding:
Text File  |  1995-04-24  |  3.8 KB  |  77 lines

  1. [This is the message I intended to redisatribute to the list,
  2. describing my roaming robot.  Maybe I should make the results of this
  3. available as a searchable HTML document?  --Guido]
  4.  
  5. >I could easily write a robot which would roam around the Web (perhaps
  6. >stochastically?), and verify the html, using sgmls.  Then, whenever
  7. >I come across something that's non-compliant, I could automatically
  8. >send mail to wwwmaster@sitename.  No one would have to annoy anyone else
  9. >about whether or not they've verified their HTML; a program would annoy
  10. >them automatically.
  11.  
  12. I have written a robot that does this, except it doesn't check for
  13. valid SGML -- it just tries to map out the entire web.  I believe I
  14. found roughly 50 or 60 different sites (this was maybe 2 months ago --
  15. I'm sorry, I didn't save the output).  It took the robot about half a
  16. day (a saturday morning) to complete.
  17.  
  18. There were several problems.
  19.  
  20. First, some sites were down and my robot would spend a considerable
  21. time waiting for the connection to time out each time it found a link
  22. to such a site.  I ended up remembering the last error from a site and
  23. skipping sites that were obviously down, but there are many different
  24. errors you can get, depending on whether the host is down,
  25. unreachable, doesn't run a WWW server, doesn't recognize the document
  26. address you want, or has some other trouble (some sites were going up
  27. and down while my robot was running, causing additional confusion).
  28.  
  29. Next, more importantly, some sites have an infinite number of
  30. documents.  There are several causes for this.
  31.  
  32. First, several sites have gateways to the entire VMS documentation (I
  33. have never used VMS but apparently the VMS help system is a kind of
  34. hypertext).  While not exactly infinite the number of nodes is *very*
  35. large.  Luckily such gateways are easily recognized by the kind of
  36. pathname they use, and VMS help is unlikely to contain pointers to
  37. anything except more VMS help, so I put in a simple trap to stop
  38. these.
  39.  
  40. Next, there are other gateways.  I can't remember whether I
  41. encountered a Gopher or WAIS gateway, but these would have even worse
  42. problems.
  43.  
  44. Finally, some servers contain bugs that cause loops, by referencing to
  45. the same document with an ever-growing path.  (The relative path
  46. resolving rules are tricky, and I was using my own www client which
  47. isn't derived from Tim's, which made this more severe, but I have also
  48. found occurrences reproducible  with the CERN www client.)
  49.  
  50. Although I didn't specifically test for bad HTML, I did have to parse
  51. the HTML to find the links, and found occasional errors.  I believe
  52. there are a few binaries, PostScript and WP files that have links to
  53. them, which take forever to fetch.  There were also various
  54. occurrences of broken addresses here and there -- this was a good
  55. occasion for me to debug my www client library.
  56.  
  57. If people are interested, I could run the robot again and report a
  58. summary of the results.
  59.  
  60. I also ran a gopher robot, but after 1600 sites I gave up...  The
  61. Veronica project in the Gopher world does the same and makes the
  62. results available as a database, although the last time I tried it the
  63. veronica server seemed too overloaded to respond to a simple query.
  64.  
  65. If you want source for the robots, the're part of the Python source
  66. distribution: ftp to ftp.cwi.nl, directory, pub/python, file
  67. python0.9.8.tar.Z.  The robot (and in fact my entire www and gopher
  68. client library) is in the tar archive in directory python/demo/www.
  69. The texinfo to html conversion program that I once advertized here is
  70. also there.  (I'm sorry, you'll have to built the python interpreter
  71. from the source before any of these programs can be used...)
  72. Note that my www library isn't up with the latest HTML specs, this is
  73. a hobby project and I neede my time for other things...
  74.  
  75. --Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
  76.  
  77.